<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');
class Pair_lib {
	function __construct() {
		$this -> CI = &get_instance();
		//log_message('debug', "Login Class Initialized");
	}




	public function facing_pattern( $str , $_arr1  ){
		
		$_more=array();
		$str_array=explode('/', $str);			

		$z=1;
		//print_r($_arr1);

		foreach ($str_array as $kk => $vv) {

			


			foreach($_arr1 as $__k =>$__v){
				
				
				if($__v==$vv){	
					$_more[]=$__k;
				

				}
			}
		}
	return $_more;			

	}


	public function object_usage_pattern( $str , $_arr1  ){
		
		$_more=array();
		$str_array=explode('/', $str);			

		$z=1;		
		foreach ($str_array as $kk => $vv) {
			foreach($_arr1 as $__k =>$__v){				
				if(strchr($__v  , $vv)){	
					$_more[]=$__k;				
				}
			}
		}
	return $_more;			

	}



}